package com.zbkj.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.zbkj.common.model.merchant.MerchantBalanceRecord;
import com.zbkj.common.model.merchant.MerchantIncomeExpenditure;
import com.zbkj.common.request.ArticleRequest;
import com.zbkj.common.request.MerchantIncomeExpenditureRequest;
import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.response.ArticleInfoResponse;
import com.zbkj.common.response.ArticleResponse;
import com.zbkj.common.response.MerchantIncomeExpenditureResponse;

import java.math.BigDecimal;


//商家收支明细记录服务层
public interface MerchantIncomeExpenditureService extends IService<MerchantIncomeExpenditure> {


    /**
     * 收支明细记录列表
     *
     * @param expenditureRequest
     * @param pageParamRequest 分页类参数
     * @return PageInfo<Article>
     */
    PageInfo<MerchantIncomeExpenditure> getList(MerchantIncomeExpenditureRequest expenditureRequest, PageParamRequest pageParamRequest);

    /**
     * 收支明细记录详情
     *
     * @param id 收支明细记录id
     * @return ArticleVo
     */
    MerchantIncomeExpenditureResponse getById(Integer id);

    /**
     * 收支明细记录新增
     *
     * @param incomeExpenditure 收支明细记录新增参数
     * @return Boolean
     */
    Boolean create(MerchantIncomeExpenditure incomeExpenditure);

    /**
     * 收支明细记录修改
     *
     * @param incomeExpenditure 收支明细记录修改参数
     */
    Boolean updateIncomeExpenditure(MerchantIncomeExpenditure incomeExpenditure);

    /**
     * 收支明细记录删除
     *
     * @param id 收支明细记录id
     * @return Boolean
     */
    Boolean deleteById(Integer id);

}